home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / examples / cgi / README < prev    next >
Encoding:
Text File  |  1997-08-18  |  1.5 KB  |  39 lines  |  [TEXT/R*ch]

  1. Writing CGI programs with Moscow ML          mosml/examples/cgi/README
  2. -----------------------------------
  3.  
  4. This directory contains two examples of using Moscow ML for writing
  5. CGI scripts:
  6.  
  7.   1. A simple HTML form and the corresponding CGI program; 
  8.      see README1
  9.  
  10.   2. Form-based file upload and the corresponding CGI program; 
  11.      see README2
  12.  
  13. Moreover, there is a script which displays all the data passed to the
  14. CGI script by the webserver.  It does so by formatting an HTML
  15. document containing the data, and returning it to the invoking browser
  16. for display.  That CGI program is called testcgi.sml.
  17.  
  18. WARNING: A CGI program is a program which runs on your server at the
  19. request of a remote user, and with input supplied by that user.
  20.  
  21. Hence, regardless whether the CGI program is written in ML, Scheme,
  22. Perl, C, or COBOL, you should:
  23.  
  24.  * beware that the permissions of the CGI programs are suitably
  25.    restricted; (these are usually controlled by the setup of httpd,
  26.    the webserver)
  27.  * consider what resources remote users may consume (cpu time,
  28.    computer memory, disk space, net bandwidth, ...)
  29.  * never leave experimental and half-baked CGI programs lying around
  30.    in publicly accessible cgi-bin directories, as they may have
  31.    security holes.
  32.  
  33. Use Mosmlcgi at your own risk.  While we believe that ML, with static
  34. type checking and automatic memory management, is a superior tool for
  35. writing CGI programs, we accept no responsibility for problems caused
  36. by the use of this software.
  37.  
  38. Peter Sestoft (sestoft@dina.kvl.dk) 1997-05-07
  39.